<?php

namespace App\Enums;

class RoomEnum {
    /**********进入房间时长相关*********/
    // 在房间中
    const ROOM_STAY_STATUS_HAS_JOIN = 1;

    // 已离开房间
    const ROOM_STAY_STATUS_HAS_LEAVE = 2;

    /**********收藏类型*********/
    // 收藏
    const ROOM_FAVORITE_TYPE_DO = 1;

    // 取消收藏
    const ROOM_FAVORITE_TYPE_UNDO = 2;

    /**********redis相关**********/



    const ROOM_BANNER_OPERATE = [
        1 => '小猫钓鱼',
        2 => '球球大作战',
        3 => '跳转链接',
        4 => 'boss大作战',
        6 => '幸运树游戏',
        7 => '抢糖果游戏',
        8 => '欢乐天天有',
        9 => '欢乐天天有(new)',
    ];

    const ROOM_TYPE_BLIND_DATE = 39;
    const ROOM_TYPE_FM     = 26;//电台房
    const ROOM_TYPE_MEET   = 34;//相亲房
    const ROOM_TYPE_PD     = 35;//派单房
//    const ROOM_TYPE_PM     = 37;//拍卖房
    const ROOM_TYPE_PM     = 65;//拍卖房
    const ROOM_TYPE_SINGLE = 38;//单人房
    const ROOM_TYPE_DATING = 39;//相亲房
    const ROOM_TYPE_GAME   = 58;  // 游戏房
    const GAME_QA          = 1; //默契问答游戏
    const GAME_ADVENTURE   = 2; //真心冒险游戏
    const RECOMMEND_HOT_ROOM_TYPE_INDEX = [18, 20, 26, 30, 36];//首页热门推荐房间类型:女生,娱乐,电台,男生,听歌

    static public function clientRoomType($sysTypeId)
    {
        $list = [
            0 => 0, // 普通房
            self::ROOM_TYPE_FM => 1, // 电台放
            self::ROOM_TYPE_MEET => 2, // 相亲房
            self::ROOM_TYPE_PD => 3, // 派单房
            self::ROOM_TYPE_PM => 4, // 拍卖房
            self::ROOM_TYPE_SINGLE => 5, // 单人房
            self::ROOM_TYPE_DATING => 6, // 相亲房
            self::ROOM_TYPE_GAME   => 7, // 游戏房
        ];
        return $list[$sysTypeId] ?? 0;
    }
}
